﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Admin.Models;
using Admin.Models.BlackList;
using MySql.Data.MySqlClient;
using OutDbContext;

namespace Admin.Controllers
{
    [Authorize]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
 
            ViewBag.ModuleName = "";
            ViewBag.ModuleLink = "#";
            ViewBag.PageName = "";
            ViewBag.PageTitle = "首页";
            return View();
        }

        public ActionResult Depart()
        {
            ViewBag.ModuleName = "基础信息管理";
            ViewBag.ModuleLink = "#";
            ViewBag.PageName = "科室管理";
            ViewBag.PageTitle = "科室管理";
            return View();
        }

        public ActionResult Doctor()
        {
            ViewBag.ModuleName = "基础信息管理";
            ViewBag.ModuleLink = "#";
            ViewBag.PageName = "医生管理";
            ViewBag.PageTitle = "医生管理";
            return View();
        }


        public ActionResult BlackList()
        {
            ViewBag.ModuleName = "黑名单管理";
            ViewBag.ModuleLink = "#";
            ViewBag.PageName = "黑名单管理";
            ViewBag.PageTitle = "黑名单管理";

            var cardTypes = new List<CardType>();
            cardTypes.Add(new CardType
            {
                Id = 0,
                Name = "诊疗卡"
            });
            cardTypes.Add(new CardType
            {
                Id = 1,
                Name = "健康卡"
            });

            ViewData["CardTypes"] = cardTypes;
            var defaultCardType =  cardTypes.First() ;
            ViewData["defaultCardType"] = defaultCardType;
            return View();
        }

    }
}